package com.wc.demo.entity;

import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author WangChen 2064318526@qq.com
 * @date 2023/8/10 16:09
 */
@Data
@TableName("user_info")
public class UserInfo implements Serializable {

    @TableId(type = IdType.AUTO) // 设置 id 自增
    private Long id;

    private String userName;

    private String password;

    @TableField(fill = FieldFill.INSERT) // 设置自动创建时间
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE) // 设置自动更新更新时间
    private LocalDateTime updateTime;
}
